import request from '@/utils/request'

export function InquiryAppointment() {
  return request({
    url: '/reserve',
    method: 'get'
  })
}

export function Appointment(data) {
  return request({
    url: '/reserve',
    method: 'post',
    data
  })
}

export function AgreeAppointment(data) {
  return request({
    url: '/reserve/manager',
    method: 'put',
    data
  })
}

export function UserInquiryAppointment(id) {
  return request({
    url: `/reserve/user/${id}`,
    method: 'get',
    id
  })
}
export function UserDelAppointment(id) {
  return request({
    url: `/reserve/user/${id}`,
    method: 'PUT',
    id
  })
}
